home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
x00v150.zip
/
FOSSIL.CHT
< prev
next >
Wrap
Text File
|
1989-07-15
|
39KB
|
354 lines
FOSSIL Function Chart, Version 5, February 11, 1988 Page 1
Copyright (C) 1987, VEP Software, Naugatuck, CT 06770. All rights reserved.
Copyright (C) 1988, Rick Moore, Homewood, IL, 60430. All rights reserved.
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| Code | Function | Function Parameters | Returned by Function | Explanation |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| | | | | |
| 00h | Set BaudRate | AL = Baud/Parity/SB | AX = Status bits | BaudRate code in AL: |
| | | DX = Port number | (See function 03h) | Bits [7:5] 000 = 19200, 001 = 38400, |
| | | (NOP if DX=00FFh) | | 010 = 300, 011 = 600, 100 = 1200, |
| | | | | 101 = 2400, 110 = 4800, 111 = 9600. |
| | | | | Parity: [4:3] 00 or 10 = none, |
| | | | | 01 = odd, 11 = even. |
| | | | | StopBits: [2:2] 0 = 1, 1 = 2 |
| | | | | CharLength: 5 bits plus value [1:0] |
| | | | | Support for [4:0] = 00011 required of |
| | | | | driver, others optional |
| | | | | |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| | | | | |
| 01h | Transmit | AL = Character | AX = Status bits | Character is queued for transmission. |
| | character | DX = Port number | (See function 03h) | If there is room in the transmitter |
| | (wait for | (NOP if DX=00FFh) | | buffer when this call is made, the |
| | room in the | | | character will be stored and control |
| | buffer) | | | returned to caller. If the buffer is |
| | | | | full, the driver will wait for room. |
| | | | | This can be dangerous when used in |
| | | | | combination with flow control (see |
| | | | | Function 0Fh) |
| | | | | |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| | | | | |
| 02h | Receive | DX = Port number | AH = 00h | The next character in the input ring |
| | character | (NOP if DX=00FFh) | AL = Input character | buffer is returned to the caller. If |
| | (wait for | | | none available, the driver will wait |
| | available) | | | for input. |
| | | | | |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| | | | | |
| 03h | StatusRequest | DX = Port number | AX = Status bits | Bits are: |
| | | (NOP if DX=00FFh) | | AH[6:6] 1 = Output buffer empty |
| | | | | AH[5:5] 1 = Output buffer not full |
| | | | | AH[1:1] 1 = Input buffer overrun |
| | | | | AH[0:0] 1 = Characters in input buffer|
| | | | | AL[7:7] 1 = Carrier Detect signal |
| | | | | AL[3:3] 1 = Always (never 0) |
| | | | | |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| | | | | |
| 04h | Initialize | DX = Port number | AX = 1954h (success) | Required before I/O can take place on |
| | driver (port) | (DX=00FFh special) | BL = Max function | comm port. When DX = 00FFh, then |
| | | | supported, not | any initialization needed to make the |
| | | | incl. 7Eh - BFh | keyboard/display available for FOSSIL |
| | | {BX = 4F50H | BH = FOSSIL revision | use should be performed. BX = 4F50h |
| | | ES:CX = ^C flag byte}| level of driver | signals that ES:CX points to a flag |
| | | (Optional) | | byte in the application that the |
| | | | DTR raised on port | driver should increment when its |
| | | | BaudRate preserved | keyboard routines detect a Ctl-C. |
| | | | | |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
FOSSIL Function Chart, Version 5, February 11, 1988 Page 2
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| Code | Function | Function Parameters | Returned by Function | Explanation |
+-------+---------------+-----------------------+-----------------------+---------------------------------------+
| | | | | |
| 05h | Deinitialize | DX = Port number | None | Disengages driver from comm port. |
| | driver (port) | (DX=00FFh special) | | Should be done when operations on the |
| | | | DTR not changed | port are complete. IF DX = 00FFh, |
| | | | | then the initialization that was |
| | | | | performed when FOSSIL function 04h |
| | | | | with DX = 00FFh should be undone. |
| | | | |